#ifndef READPNG_H
#define READPNG_H

/* http://www.libpng.org/pub/png/book/chapter13.html */
#include "def.h"

void readpng_version_info();
int readpng_init(FILE*, long*, long*, int*, int*);
int readpng_get_bgcolor(unsigned char *r, unsigned char *g, unsigned char *b);
void readpng_get_image(int*, unsigned long*, unsigned char**, png_bytep**);
void readpng_cleanup();

#endif
